Adds a stream-based attachment to the document.
Syntax
'Declaration
Public Overloads Sub AddAttachment( _
ByVal As System.String, _
ByVal () As System.Byte, _
ByVal As System.Drawing.RectangleF, _
ByVal As System.Integer, _
ByVal As AttachmentIconEnum, _
ByVal As System.Drawing.Color _
)
public void AddAttachment(
System.string ,
System.byte[] ,
System.Drawing.RectangleF ,
System.int ,
AttachmentIconEnum ,
System.Drawing.Color
)
Parameters
- attachmentName
- Name to be shown next to the attachment.
- attachmentData
- Byte array containing the attachment data.
- rc
- Area of the page that will contain the attachment (in points measured from the top-left corner of the page).
- page
- Index of the page that contains the attachment.
- icon
- AttachmentIconEnum value that determines the appearance of the attachment icon.
- iconColor
- The color of the attachment icon.
See Also